package MyPrintStream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class demo2 {
    public static void main(String[] args) throws IOException {
//        PrintWriter为字符打印流
        PrintWriter pw = new PrintWriter(new FileWriter("ddd.txt"),true);
        pw.println("阿珍爱上了阿强");
    }
}
